import layout from '@/layout'
export default {
  path: '/backStage',
  name: 'backStage',
  component: layout,
  meta: {
    // 路由元信息，存储数据
    title: '后台管理',
    icon: 'el-icon-s-custom'
  },
  children: [
    {
      path: '', // 默认子路由,只能有一个
      name: 'userView',
      component: () => import('@/views/backStage/userView.vue'),
      meta: {
        // 路由元信息，存储数据
        title: '用户',
        icon: 'tree-table'
      }
    },
    {
      path: 'menuView', // 默认子路由,只能有一个
      name: 'menuView',
      component: () => import('@/views/backStage/menuView.vue'),
      meta: {
        // 路由元信息，存储数据
        title: '菜单',
        icon: 'tree-table'
      }
    }
  ]
}
